Use the attribute name in the error message instead of the value.
authorJohan Dahlin <jdahlin@async.com.br>
Thu, 28 Jun 2007 02:00:16 +0000 (02:00 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Thu, 28 Jun 2007 02:00:16 +0000 (02:00 +0000)
2007-06-27  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkbuilderparser.c (parse_property): Use
    the attribute name in the error message instead of
    the value.

svn path=/trunk/; revision=18272

ChangeLog
gtk/gtkbuilderparser.c

index 139a425de65a2c54d21d2ebb4098e3143ba9e6b7..195b0c43a354c47cf647ec50369543ec2bb87656 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-06-27  Johan Dahlin  <jdahlin@async.com.br>
 
+       * gtk/gtkbuilderparser.c (parse_property): Use
+       the attribute name in the error message instead of
+       the value.
+       
        * demos/gtk-demo/demo.ui: Set name of Help menu
        to HelpMenu
 
index 87fd6231aa92c663c5c1033f3aabb6943db6297c..a619a1f5072b53a46a95b4c847c1c78cb6b5c8f7 100644 (file)
@@ -211,7 +211,7 @@ parse_object (ParserData   *data,
         constructor = g_strdup (values[i]);
       else
        {
-         error_invalid_attribute (data, element_name, values[i], error);
+         error_invalid_attribute (data, element_name, names[i], error);
          return;
        }
     }
@@ -318,7 +318,7 @@ parse_child (ParserData   *data,
             }
         }
       else
-       error_invalid_attribute (data, element_name, values[i], error);
+       error_invalid_attribute (data, element_name, names[i], error);
     }
 
   child_info->parent = (CommonInfo*)object_info;
@@ -356,7 +356,7 @@ parse_property (ParserData   *data,
         translatable = strcmp (values[i], "yes") == 0;
       else
        {
-         error_invalid_attribute (data, element_name, values[i], error);
+         error_invalid_attribute (data, element_name, names[i], error);
          return;
        }
     }
@@ -418,7 +418,7 @@ parse_signal (ParserData   *data,
         object = g_strdup (values[i]);
       else
        {
-         error_invalid_attribute (data, element_name, values[i], error);
+         error_invalid_attribute (data, element_name, names[i], error);
          return;
        }
     }
@@ -480,7 +480,7 @@ parse_interface (ParserData   *data,
          break;
        }
       else
-       error_invalid_attribute (data, "interface", values[i], error);
+       error_invalid_attribute (data, "interface", names[i], error);
     }
 }